﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace DailyMotion.DataAccess
{
    [DataContract]
    public class DailyMotionPagedResult
    {
        [DataMember(Name = "page")]
        public int Page { get; set; }

        [DataMember(Name = "limit")]
        public int Limit { get; set; }

        [DataMember(Name = "total")]
        public int Total { get; set; }

        [DataMember(Name = "has_more")]
        public bool HasMore { get; set; }


        [DataMember(Name = "list")]
        public List<DailyMotionChannel> List;
    }

    [DataContract]
    public class DailyMotionVideosPagedResult
    {
        [DataMember(Name = "page")]
        public int Page { get; set; }

        [DataMember(Name = "limit")]
        public int Limit { get; set; }

        [DataMember(Name = "total")]
        public int Total { get; set; }

        [DataMember(Name = "has_more")]
        public bool HasMore { get; set; }


        [DataMember(Name = "list")]
        public List<DailyMotionVideo> List;
    }
    [DataContract]
    public class DailyMotionChannel
    {
        [DataMember(Name = "id")]
        public string ID { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }

        [DataMember(Name = "description")]
        public string Description { get; set; }

    }

    [DataContract]
    public class DailyMotionVideo
    {
        [DataMember(Name = "id")]
        public string ID { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name = "description")]
        public string Description { get; set; }

        [DataMember(Name = "owner")]
        public string Owner { get; set; }

        [DataMember(Name = "tags")]
        public string[] Tags { get; set; }

        [DataMember(Name = "channel.id")]
        public string ChannelID { get; set; }

        [DataMember(Name = "embed_html")]
        public string EmbedHTML { get; set; }

        [DataMember(Name = "owner.avatar_medium_url")]
        public string OwnerAvatarUrl { get; set; }

        [DataMember(Name = "owner.id")]
        public string OwnerID { get; set; }

        [DataMember(Name = "ating")]
        public string Rating { get; set; }

        [DataMember(Name = "ratings_total")]
        public string TotalRatings { get; set; }

        [DataMember(Name = "thumbnail_url")]
        public string ThumbnailUrl { get; set; }

        [DataMember(Name = "views_last_week")]
        public int ViewsLastWeek { get; set; }


        //"thumbnail_large_url": "http://static2.dmcdn.net/static/video/345/858/51858543:jpeg_preview_large.jpg?20121106065003",
        //"thumbnail_small_url": "http://static2.dmcdn.net/static/video/345/858/51858543:jpeg_preview_small.jpg?20121106065003",


    }
}